#include"show.h"
int main(){
    list<employee> l;
    my_file f;
    l = f.myread("data.txt");
    show *s = new show();
    while(true){
        s->menu();
        char choice;
        cin>>choice;
        switch(choice){
            case '0':
            exit(0);
            break;
            case '1':
            s->print(&l);
            break;
            case '2':
            s->add(&l);
            break;
            case '3':
            s->remove(&l);
            break;
            case '4':
            s->search(&l);
            break;
            case '5':
            s->modify(&l);
            break;
            case '6':
            s->look_for(&l);
            break;
            default:
            cout<<"wrong input"<<endl;
            break;
        }
        cout<<"press enter to continue"<<endl;
        getchar();getchar();
       system("clear");
    }
}